//package com.lepu.app.fun.hospital.fragment;
//
//import android.os.Bundle;
//import android.support.annotation.Nullable;
//import android.view.LayoutInflater;
//import android.view.View;
//import android.view.ViewGroup;
//import android.widget.ListView;
//
//import com.app.utils.Const;
//import com.core.lib.application.BaseFragment;
//import com.core.lib.widget.ListViewForScrollview;
//import com.eyzhs.app.R;
//import com.lepu.app.fun.hospital.adapter.DoctorListAdapter;
//import com.lepu.app.fun.hospital.bean.Hospital;
//import com.lepu.app.fun.hospital.bean.HospitalDoctor;
//
//import java.util.ArrayList;
//
///**
// * DoctorListFragment
// */
//public class DoctorListFragment extends BaseFragment {
//    private View mMainView;
//    private ArrayList<HospitalDoctor> doctors = new ArrayList<HospitalDoctor>();
//    private DoctorListAdapter mAdapter;
//
//    public void onCreate(Bundle savedInstanceState) {
//        super.onCreate(savedInstanceState);
//    }
//
//    @Nullable
//    @Override
//    public View onCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState) {
//        mMainView = LayoutInflater.from(getActivity()).inflate(
//                R.layout.hospital_fragment_doctor, null, false);
//        ListView mListView = (ListView) mMainView.findViewById(R.id.listview);
//        mAdapter = new DoctorListAdapter(getActivity(), doctors);
//        mListView.setAdapter(mAdapter);
//        initData();
//        return mMainView;
//    }
//
//    private void initData() {
//        Bundle args = getArguments();
//        if (args != null) {
//            Hospital hospital = (Hospital) args.getSerializable(Const.DATA);
//            if (hospital == null) return;
//            ArrayList<HospitalDoctor> temps = null;
//            if (args.getInt(Const.POSTION) == 0) {
//                temps = hospital.ObstetricsGynecologyList;
//            } else
//                temps = hospital.PediatricsList;
//            if (temps != null) {
//                doctors.clear();
//                doctors.addAll(temps);
//                mAdapter.notifyDataSetChanged();
//            }
//        }
//    }
//
//}
